// pages/cook/components/modalBox/modalBox.js
const app = getApp();
Component({
  options: {
    multipleSlots: true
  },
  /**
   * 组件的属性列表
   */
  properties: {
    showModal: {
      type: Boolean,
      value: false
    },
    modalTitle:{
      type: String,
      value: ""    
    },
    modalTop:{
      type: Number,
      value: NaN      
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    APP_OSSURL_API: app.APP_OSSURL_API,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    /**
     * 关闭模态对话框
     */
    closeModal: function () {
      console.log(this.data.modalTop == this.data.modalTop)
      this.setData({
        showModal: false
      })
    }
  }
})